@import '../../ui/Typo.module.scss';

.root {
  &-editor > * {
    display: block;
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    width: 100%;
    resize: none;
    padding: 9px 14px;
    background: var(--alinea-fields);
    box-shadow: var(--alinea-fields-shadow);
    border-radius: 8px;
    resize: none;
    cursor: text;
    line-height: 1.5;
    min-height: 40px;
  }

  &-editor.is-focus > * {
    background: var(--alinea-fields-selected);
    outline: 2px solid var(--alinea-fields-focus);
  }

  &-editor.is-readonly > * {
    cursor: default;
  }
}

.insert {
  &-trigger {
    background: var(--alinea-content);
    border-radius: var(--alinea-border-radius);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;

    &:hover {
      background: var(--alinea-highlight);
    }
  }
}
